package lh.myenum;

/**
 * 客户端类型：-1：居民APP、-2：警务APP、-3：小程序、-4:门禁机、1：监控BS、2：命令BS；
 */
public enum ClientTypeEnum {
    PERSON_APP((byte) -1, false, "居民APP"),
    POLICE_APP((byte) -2, false, "警务APP"),
    WECHAT_CS((byte) -3, false, "小程序"),
    DOOR_APP((byte) -4, false, "门禁机"),
    VIEW_BS((byte) 1, true, "监控BS"),
    COMMAND_BS((byte) 2, true, "命令BS"),
    ;
    /**
     * 标识客户端类型
     */
    private byte clientType;
    /**
     * 是否接受广播信息
     */
    private boolean receiveAll;
    /**
     * 备注
     */
    private String remark;

    ClientTypeEnum(byte clientType, boolean receiveAll, String remark) {
        this.clientType = clientType;
        this.receiveAll = receiveAll;
        this.remark = remark;
    }

    public boolean isReceiveAll() {
        return receiveAll;
    }

    public byte getClientType() {
        return clientType;
    }

    public String getRemark() {
        return remark;
    }
}
